export function wrap(p) {
  return p.then(res => [null, res]).catch(err => [err, null]);
}
